import uvicorn
import sys
from pathlib import Path

sys.path.append(str(Path(__file__).parent.parent))  # H:\code\fastapi-blog

from api import create_application

app = create_application()

if __name__ == "__main__":
    uvicorn.run("app:app", host="127.0.0.1", port=8000, reload=True)
